export const enum Status {
  待巡检 = 1,
  异常 = 2,
  已巡检 = 3,
  不能巡检 = 0
}

export const statusColor: Record<Status, { color: string; rgba: string }> = {
  [Status.待巡检]: {
    color: 'yellow',
    rgba: 'rgba(255,197,61,0.8)'
  },
  [Status.已巡检]: {
    color: 'green',
    rgba: 'rgba(135, 208, 104,0.8)'
  },
  [Status.异常]: {
    color: 'red',
    rgba: 'rgba(245, 34, 45, 0.8)'
  },
  [Status.不能巡检]: {
    color: 'gray',
    rgba: 'rgba(170, 155, 156, 0.8)'
  }
};

//点位数据结构定义
export interface PointVo extends BIZAPI.ProInspectionPointRecordEntity {
  name: string;
  x: number;
  y: number;
  key?: number | string;
}

export const drawMap = [
  {
    name: '中控室',
    status: Status.已巡检,
    x: 365,
    y: 265
  },
  {
    name: '加药间',
    status: Status.已巡检,

    x: 341,
    y: 210
  },
  {
    name: '风机间',
    status: Status.已巡检,

    x: 473,
    y: 165
  },
  {
    name: '脱泥间',
    status: Status.异常,
    x: 552,
    y: 122
  },
  {
    name: '预处理',
    status: Status.已巡检,
    x: 569,
    y: 83
  },
  {
    name: '除臭系统',
    status: Status.已巡检,
    x: 593,
    y: 36
  },
  {
    name: '生化系统',
    status: Status.已巡检,
    x: 381,
    y: 117
  },
  {
    name: '危化间',
    status: Status.已巡检,
    x: 90,
    y: 160
  },
  {
    name: '芬顿间',
    status: Status.待巡检,
    x: 120,
    y: 190
  },
  {
    name: 'BAF间',
    status: Status.待巡检,
    x: 210,
    y: 240
  },
  {
    name: '雨水池',
    status: Status.待巡检,
    x: 294,
    y: 375
  },
  {
    name: '外排间',
    status: Status.待巡检,
    x: 463,
    y: 243
  },
  {
    name: '一体化',
    status: Status.待巡检,
    x: 521,
    y: 204
  }
];
export default drawMap;
